package com.hong.spring.common.event;

import org.springframework.context.ApplicationEvent;

/**
 * @Auther: csh
 * @Date: 2020/7/9 17:11
 * @Description:自定义事件
 */
public class UserEvent extends ApplicationEvent {

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public UserEvent(Object source) {
        super(source);
    }

    @Override
    public String toString() {
        return "this my event";
    }
}
